import request from "@/utils/request.ts"

// 获取品牌页面的数据
export const getDataList = (currentPage, pageSize) => {
    return request({
        method: "get",
        url: `/admin/product/baseTrademark/${currentPage}/${pageSize}`,
    })
}

// 添加品牌数据
export const addBrand = (data) => {
    return request({
        method: "post",
        url: `/admin/product/baseTrademark/save`,
        data,
    })
}

// 修改品牌数据
export const updateBrand = (data) => {
    return request({
        method: "put",
        url: `/admin/product/baseTrademark/update`,
        data,
    })
}

// 删除品牌的数据
export const deleteBrand = (id) => {
    return request({
        method: "delete",
        url: `/admin/product/baseTrademark/remove/${id}`,
    })
}
